<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="../gvis.js"></script>
<?php
  	require_once '../classes/gvisWriter.php';
  	$gvisJSObject = new gvisWriter(1,'piechart', 'piechart_div1', "width: 400, height: 240, is3D: true, title: 'Title of Pie Chart', backgroundColor: {stroke:'black', fill:'#eee', strokeSize: 1}");
	$gvisJSObject->addRow(array('ONE', 1000));
	$gvisJSObject->addRow(array('TWO', 2000));
	$gvisJSObject->addRow(array('THREE', 3000));		
  	echo $gvisJSObject->getScriptString();
?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Example gvisWriter.php Pie Chart</title>
</head>
<body>
    <div id='piechart_div1'></div>
</body>
</html>